package com.logic.landseaserver.persistence.read;

import java.util.List;

import com.logic.common.util.QueryUtil;
import com.logic.landseaserver.domain.WorkOrder;
import com.logic.landseaserver.models.workorder.bean.AssignedUserResp;
import com.logic.landseaserver.models.workorder.bean.WorkOrderDetailResp;
import com.logic.landseaserver.models.workorder.bean.WorkOrderListResp;
import com.logic.landseaserver.models.workorder.bean.WorkOrderReportListResp;

public interface WorkOrderReadMapper {

    WorkOrder selectByPrimaryKey(Integer id);

    Integer getMaxWOCode();

    WorkOrderDetailResp selectWorkOrderDetail(Integer id);

    List<WorkOrderListResp> selectWorkOrderList(QueryUtil queryUtil);

    List<WorkOrderReportListResp> selectWorkOrderReportList(QueryUtil queryUtil);

    List<AssignedUserResp> getHouseKeeperByPrjId(Integer projectId);

    List<AssignedUserResp> getManagerByPrjId(Integer projectId);

    List<WorkOrderListResp> getWorkOrderListForWeChat(Integer userId);

    List<WorkOrderListResp> selectWorkOrderListForMessage();

    List<AssignedUserResp> getAreaManagerByPrjId(Integer projectId);

    List<WorkOrderListResp> selectWorkOrderListByDZ(QueryUtil queryUtil);

    List<WorkOrderReportListResp> selectWorkOrderReportListByDZ(QueryUtil queryUtil);

}